Builder

class Builder

A builder of KeyTyped.

Builders are created by invoking newBuilder. Each of the setter methods modifies the state of the builder and returns the same instance. Builders are not thread-safe and should not be used concurrently from multiple threads without external synchronization.

Functions

Link copied to clipboard
open fun build(): KeyTyped
Returns a new KeyTyped instance built from the current state of this builder.
Link copied to clipboard
open fun keyChar(keyChar: Char): KeyTyped.Builder
Sets the key character corresponding to the typed key.
Link copied to clipboard
open fun keyLocation(keyLocation: KeyLocation): KeyTyped.Builder
Sets the location of the key on the keyboard.
Link copied to clipboard
open fun keyModifiers(keyModifiers: KeyModifiers): KeyTyped.Builder
Sets the keyboard modifiers applied.